/*
    for循环嵌套练习，假设有一种货币包含三种面值：1元，2元和5元，编程列举出10元的所有组合方式
*/
#include <stdio.h>
int main() {
    int num = 0, num1 = 0, num2 = 0;
    for (num = 0; num <= 2; num++) {
	for (num1 = 0; num1 <= (10 - num *5)/2; num1++) {
	    printf("1元%d，2元%d，5元%d\n",10 - 5 *num - 2 * num1, num1,num);
  	}
    }
    return 0;
}
